package com.zhentao.common.user;

/**
 * @ClassName: UserCommon
 * @Author: 振涛教育_Q
 * @Date: 2024/12/17 10:01
 */
public interface UserCommon {
    /**
     * @description 用户登录信息 -- 缓存 -- key
     */
    public String CHARGE_USER_LOGIN_KEY = "charge_user_login_key:";
    /**
     * @description 缓存存储用户id -- 缓存主要用于定时任务使用 -- key
     */
    public String CHARGE_USER_LOGIN_KEY_SCHEDULE = "schedule:user:key";
    /**
     * @description 用户登录信息 -- 缓存 -- 过期时间
     */
    public Long CHARGE_USER_LOGIN_EXPIRE = 30L;

    /**
     * @description 用户登录验证码 -- 缓存 -- key
     */
    public String CHARGE_USER_MASSAGE_CODE_KEY = "charge_user_code:";

    /**
     * @description 用户登录验证码 -- 缓存 -- 过期时间
     */
    public Long CHARGE_USER_MASSAGE_CODE_EXPIRE = 60L;

    /**
     * @description minio -- 用户头像存储 -- prefix
     */
    public String CHARGE_USER_AVATAR_PREFIX = "chargeUser:avatar:img";
    /**
     * @description redis -- 用户头像存储 -- prefix
     */
    public String CHARGE_USER_REDIS_PREFIX_AVATAR_IMG = "cache:chargeUser:avatar:img";
    /**
     * @description minio -- 车辆头像存储 -- prefix
     */
    public String CHARGE_CAR_INFO_AVATAR_IMG = "chargeCar:avatar:img";

    /**
     * @description  chargeUser 积分变化史  增加
     */
    public String CHARGE_POINTS_HISTORY_CHANGE_ADD = "+";
    /**
     * @description  chargeUser 积分变化史  减去
     */
    public String CHARGE_POINTS_HISTORY_CHANGE_MINUS = "-";

    /**
     * @description  余额充值订单查询缓存
     */
    public String RECHARGE_ORDER_LIST = "charge:rechargeOrder:list";
}
